package com.example.algorithm_learning_platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Data
@TableName("chat_message")
@Getter
@Setter
public class ChatMessage {
    @TableId(value = "message_id", type = IdType.AUTO)
    private Integer messageId;
    
    private Integer userId;
    private String question;
    private String answer;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
} 